using System;
using System.Collections.Generic;
using System.Text;

namespace MonoCash.ObjectModel
{
    class TransactionDetailType : ObjectModel
    {

        public static List<TransactionDetailType> TransactionDetailTypes
        {
            get
            {
                List<TransactionDetailType> temp = new List<TransactionDetailType>();
                TransactionDetailType tdt = new TransactionDetailType();
                foreach (ObjectModel o in tdt.Objects)
                {
                    temp.Add((TransactionDetailType)o);
                }

                return temp;
            }
        }
        public TransactionDetailType() : base () {}
        public TransactionDetailType(object tdtId) : base (tdtId) {}

        private string name;
        public string Name
        {
            get { return name; }
            set { name = value; SyncToBackend(); }
        }

        private bool includeInCostBasis;
        public bool IncludeInCostBasis
        {
            get { return includeInCostBasis; }
            set { includeInCostBasis = value; SyncToBackend(); }
        }
    }
}
